﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace LibreriaVB.Models
{
    [Table("Compras")]
    public class Compra
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        
        public int ClienteId { get; set; }
        public virtual Cliente Cliente { get; set; }
        
        public int LibroId { get; set; }
        public Libro Libro { get; set; }
        public int Cantidad { get; set; }
        
    }

}